package com.fitns.user.exception;

public enum UserMsgCode implements MsgCode {
    USER_INSER_IS_NULL(300001,"用户信息为空！"),
    USER_MESSEAGE_NOT(300002,"用户信息不全，必填项缺失！"),
    USER_ORGAN_IS_NULL(300003,"用户未绑定组织机构"),
    USER_NOT_BINVALID(300004,"用户未启用！"),
    USER_ALL_EXIST(300005,"用户名称或者手机号码已经存在，不可重复"),
    USER_NOT_EXIST(300006,"用户不存在！"),
    USER_PASSWORD_IS_NULL(300007,"密码不能为空"),
    USER_PASSWORD_NOT_VALID(300008,"密码不符合规范"),
    USER_PASSWORD_IS_THE_SAME(300009,"重置密码与用户原有密码相同"),
    USER_NO_ROLE_FOUND(300010,"用户找不到角色"),
    USER_MOBILE_NO_IS_NULL(300011,"手机号码不能为空"),
    USER_MOBILE_NO_NOT_VALID(300012,"手机格式不正确"),
    USER_ROLE_IS_NULL(300013,"用户角色为空")
    ;


    private int code;
    private String message;

    UserMsgCode(int code, String message) {
        this.code = code;
        this.message = message;
    }
    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }
}
